<div style="font-size: 125%; padding: 10px 0px 2px 2px; ">
{$kateg.blcNazwa}
</div>
<p style=" font-size: 80%; padding: 0px 0px 10px 2px; border-bottom: dotted 1px #fff;">{$kateg.blcOpis}</p>
{if $archiwum eq 1 }<a href="{$smarty.const.HTTP_URL}{$smarty.request.page},,wyswietlWpisy,{$kateg.blcID}.html">Zobacz aktualne wpisy...</a>{/if}
{if $archiwum ne 1 }<a href="{$smarty.const.HTTP_URL}{$smarty.request.page},,archiwum,{$kateg.blcID}.html">Zobacz archiwalne wpisy...</a>{/if}
<div id="accordion-wpisy" >


	<div class="lista-wpisow-bloga" style="margin-top: 10px;">
		<div class="wpis-temat"><a href="#"  title="{$jeden.blwTemat|wordwrap:17:" ":true|html2text}">{$jeden.blwTemat|wordwrap:17:" ":true|default:$jeden.blwID}</a></div>
		<div class="wpisy-data">{$jeden.blwData|date_format_:"%A, %B %e, %Y godz.:%H:%M:%S"}</div>
	</div>
	

	<div class="conntent-wpisu" style="margin-bottom: 20px; padding: 10px 3px 10px 3px;">
		{if $uprawnienia eq 1}
		<div class="wpisy-tools">
			<a style="float:left" href="{$smarty.const.HTTP_URL}{$page},,edytujWpis,{$jeden.blcID},{$jeden.blwID},{$jeden.blwTemat|frendlyurl}.html"><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_edit.gif"  title="Edytuj treśc wpisu"  alt="edit"></a>
			<a style="float:left" href="{$smarty.const.HTTP_URL}{$page},Blog,wpisUp,{$jeden.blcID},{$jeden.blwID},{$jeden.blwTemat|frendlyurl}.html"><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_up.gif"  title="Do przodu"  alt="up"></a>
			<a style="float:left" href="{$smarty.const.HTTP_URL}{$page},Blog,wpisDown,{$jeden.blcID},{$jeden.blwID},{$jeden.blwTemat|frendlyurl}.html"><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_down.gif"  title="Do tyłu"  alt="down"></a>
			<a style="float:left" href="{$smarty.const.HTTP_URL}{$page},Blog,zablogujWpisBloga,{$jeden.blcID},{$jeden.blwID},{$jeden.blwStatus},{$jeden.blwTemat|frendlyurl}.html"><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_{if $jeden.blwStatus eq 0}un{/if}lock.gif"  title="{if $jeden.blwStatus eq 0}Zablokuj{else}Odblokuj{/if} wpis"  alt="lock"></a>
			<a style="float:left; cursor: pointer;" onclick="$('#pytanie-text-{$jeden.blwID}').dialog();" ><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_delete.gif"  title="Usuń wpis z bloga"  alt="del"></a>
			<!-- help -->
			<div id="pytanie-text-{$jeden.blwID}" style="display: none;" title="Czy usunąc wpis z bloga">
				
				<p>Czy napewno usunąc wpis z bloga: {$jeden.blwTemat|wordwrap:17:" ":true|default:$jeden.blwID}</p>
				<br/>
				<input type="button" value="Tak" onclick="document.location='{$smarty.const.HTTP_URL}{$smarty.request.page},Blog,usunWpisBloga,{$jeden.blcID},{$jeden.blwID},{$jeden.blwTemat|frendlyurl}.html';"/>
				<input type="button" value="Nie" onclick="$('#pytanie-text-{$jeden.phID}').dialog( 'destroy' );"/>
			</div>
			<!-- /help -->	
		</div>
		{/if}

		{$jeden.blwWpis|default:'...'}
		
		{assign var=separ value=';'}
		{assign var='komID' value=$jeden.blwID}
		{dispatcher->handleEvent v=Komentarze,index,Blog$separ$komID}
	</div>	

</div>

